package com.ccp.dev.qbdms.model;

import com.ccp.dev.qbdms.annotation.IsAttachment;
import com.ccp.dev.qbdms.expimp.annotation.FlowSubject;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Mapping;

/**
 * 质量知识表 w_qbd_quality_know
 * 
 * @author 于金
 * @date 2020-07-20 10:41:54
 */
@Document(indexName = "zlzs", type = "w_qbd_quality_know")
@Mapping(mappingPath = "esJson/w_qbd_quality_know_mapping.json")
@FlowSubject(subjectName = "质量知识")
public class WQbdQualityKnow extends  BaseBusinessModel<WQbdQualityKnow>
{
	private static final long serialVersionUID = 1L;

    /**
     * 主键提的
    */
    @Id
    private String  id;
    /**
     * 知识名称
    */
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer="ik_smart")
    private String  knowledgeName;

    /**
     * 知识分类1
    */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String  knowledgeClassification;
    /**
     * 知识分类2
    */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String  knowledgeClassification2;
    /**
     * 关键词
    */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String  keyWord;
    /**
     * 文件摘要
    */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart",searchAnalyzer="ik_smart")
    private String  summaryDocument;
    /**
     * 附件
    */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    @IsAttachment
    private String  enclosure;

    /**
     * 附件内容
     */
    @Field(type = FieldType.Text,analyzer = "ik_smart",searchAnalyzer="ik_smart")
    private String  enclosureContent;
    /**
     * 附件名称
     */
    @Field(type = FieldType.Text,analyzer = "ik_smart")
    private String  enclosureFileName;
    /**
     * belongdeptname
    */
    @Field(type = FieldType.Keyword)
    private String  belongdeptname;

    /**
     * status
    */
    @Field(type = FieldType.Keyword)
    private String  status;
    /**
     * report_status
    */
    @Field(type = FieldType.Keyword)
    private String  reportStatus;
    /**
     * report_status_str
    */
    @Field(type = FieldType.Keyword)
    private String  reportStatusStr;
    /**
     * report_status_temp
    */
    @Field(type = FieldType.Keyword)
    private String  reportStatusTemp;
    /**
     * secret
    */
    @Field(type = FieldType.Keyword)
    private String  secret;
    /**
     * fillman
    */
    @Field(type = FieldType.Keyword,searchAnalyzer="ik_smart")
    private String  fillman;
    /**
     * fillmanaccount
    */
    @Field(type = FieldType.Keyword)
    private String  fillmanaccount;
    /**
     * filldept
    */
    @Field(type = FieldType.Keyword)
    private String  filldept;
    /**
     * filldeptid
    */
    @Field(type = FieldType.Keyword)
    private String  filldeptid;
    /**
     * filldate
    */
    @Field(type = FieldType.Keyword)
    private String  filldate;
    /**
     * filldept_hospital
    */
    @Field(type = FieldType.Keyword)
    private String  filldeptHospital;
    private String  dataprivacylevel;


    /**
     * 可见范围
     */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String visibleRange;
    /**
     * 是否消息推送
     */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String pushState;


    /**
     * 填写人部门code
     */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String departCode;

    /**
     * 填写人角色code
     */
    @Field(type = FieldType.Keyword,analyzer = "ik_smart")
    private String roleId;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * 收藏状态 用来显示判定用的
     */
    private  String collectionStatus;

    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    private String oldId;

    public String getDepartCode() {
        return departCode;
    }

    public void setDepartCode(String departCode) {
        this.departCode = departCode;
    }

    /**
     *
     */

    private Boolean isEdit;

    private String fileId;

    public Boolean getEdit() {
        return isEdit;
    }

    public void setEdit(Boolean edit) {
        isEdit = edit;
    }

    public String getOldId() {
        return oldId;
    }

    public void setOldId(String oldId) {
        this.oldId = oldId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getDataprivacylevel() {
        return dataprivacylevel;
    }

    public void setDataprivacylevel(String dataprivacylevel) {
        this.dataprivacylevel = dataprivacylevel;
    }

    public String getId() {
        return this.id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getKnowledgeName() {
        return this.knowledgeName;
    }

    public String getCollectionStatus() {
        return collectionStatus;
    }

    public void setCollectionStatus(String collectionStatus) {
        this.collectionStatus = collectionStatus;
    }

    public void setKnowledgeName(String knowledgeName) {
        this.knowledgeName = knowledgeName;
    }
    public String getKnowledgeClassification() {
        return this.knowledgeClassification;
    }
    public void setKnowledgeClassification(String knowledgeClassification) {
        this.knowledgeClassification = knowledgeClassification;
    }
    public String getKnowledgeClassification2() {
        return this.knowledgeClassification2;
    }
    public void setKnowledgeClassification2(String knowledgeClassification2) {
        this.knowledgeClassification2 = knowledgeClassification2;
    }
    public String getKeyWord() {
        return this.keyWord;
    }
    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }
    public String getSummaryDocument() {
        return this.summaryDocument;
    }
    public void setSummaryDocument(String summaryDocument) {
        this.summaryDocument = summaryDocument;
    }
    public String getEnclosure() {
        return this.enclosure;
    }
    public void setEnclosure(String enclosure) {
        this.enclosure = enclosure;
    }
    @Override
    public String getBelongdeptname() {
        return this.belongdeptname;
    }
    @Override
    public void setBelongdeptname(String belongdeptname) {
        this.belongdeptname = belongdeptname;
    }
    public String getStatus() {
        return this.status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    @Override
    public String getReportStatus() {
        return this.reportStatus;
    }
    @Override
    public void setReportStatus(String reportStatus) {
        this.reportStatus = reportStatus;
    }
    @Override
    public String getReportStatusStr() {
        return this.reportStatusStr;
    }
    @Override
    public void setReportStatusStr(String reportStatusStr) {
        this.reportStatusStr = reportStatusStr;
    }
    @Override
    public String getReportStatusTemp() {
        return this.reportStatusTemp;
    }
    @Override
    public void setReportStatusTemp(String reportStatusTemp) {
        this.reportStatusTemp = reportStatusTemp;
    }
    @Override
    public String getSecret() {
        return this.secret;
    }
    @Override
    public void setSecret(String secret) {
        this.secret = secret;
    }
    @Override
    public String getFillman() {
        return this.fillman;
    }
    @Override
    public void setFillman(String fillman) {
        this.fillman = fillman;
    }
    @Override
    public String getFillmanaccount() {
        return this.fillmanaccount;
    }
    @Override
    public void setFillmanaccount(String fillmanaccount) {
        this.fillmanaccount = fillmanaccount;
    }
    @Override
    public String getFilldept() {
        return this.filldept;
    }
    @Override
    public void setFilldept(String filldept) {
        this.filldept = filldept;
    }
    @Override
    public String getFilldeptid() {
        return this.filldeptid;
    }
    @Override
    public void setFilldeptid(String filldeptid) {
        this.filldeptid = filldeptid;
    }
    @Override
    public String getFilldate() {
        return this.filldate;
    }
    @Override
    public void setFilldate(String filldate) {
        this.filldate = filldate;
    }
    @Override
    public String getFilldeptHospital() {
        return this.filldeptHospital;
    }
    @Override
    public void setFilldeptHospital(String filldeptHospital) {
        this.filldeptHospital = filldeptHospital;
    }


    public String getEnclosureContent() {
        return enclosureContent;
    }

    public void setEnclosureContent(String enclosureContent) {
        this.enclosureContent = enclosureContent;
    }

    public String getEnclosureFileName() {
        return enclosureFileName;
    }

    public void setEnclosureFileName(String enclosureFileName) {
        this.enclosureFileName = enclosureFileName;
    }

    @Override
    public String toString() {
        return "WQbdQualityKnow{" +
                "id='" + id + "'," +
                "knowledgeName='" + knowledgeName + "'," +
                "knowledgeClassification='" + knowledgeClassification + "'," +
                "knowledgeClassification2='" + knowledgeClassification2 + "'," +
                "keyWord='" + keyWord + "'," +
                "summaryDocument='" + summaryDocument + "'," +
                "enclosure='" + enclosure + "'," +
                "belongdeptname='" + belongdeptname + "'," +
                "status='" + status + "'," +
                "reportStatus='" + reportStatus + "'," +
                "reportStatusStr='" + reportStatusStr + "'," +
                "reportStatusTemp='" + reportStatusTemp + "'," +
                "secret='" + secret + "'," +
                "fillman='" + fillman + "'," +
                "fillmanaccount='" + fillmanaccount + "'," +
                "filldept='" + filldept + "'," +
                "filldeptid='" + filldeptid + "'," +
                "filldate='" + filldate + "'," +
                "filldeptHospital='" + filldeptHospital + "'," +
                '}';
    }


    public String getVisibleRange() {
        return visibleRange;
    }

    public void setVisibleRange(String visibleRange) {
        this.visibleRange = visibleRange;
    }

    public String getPushState() {
        return pushState;
    }

    public void setPushState(String pushState) {
        this.pushState = pushState;
    }
}
